<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/reset.css">
<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/index.css">
<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/main.css">
<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/jquery.fancybox.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/jquery.fancybox-buttons.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{$modules_dir}/smartblog/css/jquery.fancybox-thumbs.css" rel="stylesheet">
<script type="text/javascript" src="{$modules_dir}/smartblog/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{$modules_dir}/smartblog/js/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="{$modules_dir}/smartblog/js/jquery.fancybox-buttons.js"></script>
<script type="text/javascript" src="{$modules_dir}/smartblog/js/jquery.fancybox-thumbs.js"></script>
<script type="text/javascript" src="{$modules_dir}/smartblog/js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="{$modules_dir}/smartblog/js/beggindex.js"></script>
		
<!-- main -->
		 <!--面包屑-->
		{capture name=path}
			<a href="{smartblog::GetSmartBlogLink('smartblog')}">{l s='All Blog News' mod='smartblog'}</a>
			{if $title_category != ''}
			  <a href="" class="on">{$navigationPipe}</a>{$title_category}
			{/if}
		{/capture}
  
	
	  
		  <!--没有栏目的时候提示-->
		{if $postcategory == ''}
			{if $title_category != ''}
				 <p class="error">{l s='No Post in Category' mod='smartblog'}</p>
			{else}
				 <p class="error">{l s='No Post in Blog' mod='smartblog'}</p>
			{/if}
		{else}
		  <!--有栏目内容的时候-->
		  <div class="blog">
				<ul class="blog-list">
					<!--blog列表页-->		
					{foreach from=$postcategory item=post}
						{include file="./category_loop.tpl" postcategory=$postcategory}
					{/foreach}		
				</ul>
				<!--page  -->
				<!--分页-->
				{if !empty($pagenums)}
				<div class="row">
				<div class="post-page col-md-12">
						<div class="col-md-6">
							<ul class="pagination">
								{for $k=0 to $pagenums}
									{if $title_category != ''}
										{assign var="options" value=null}
										{$options.page = $k+1}
										{$options.id_category = $id_category}
										{$options.slug = $cat_link_rewrite}
									{else}
										{assign var="options" value=null}
										{$options.page = $k+1}
									{/if}
									{if ($k+1) == $c}
										<li><span class="page-active">{$k+1}</span></li>
									{else}
											{if $title_category != ''}
												<li><a class="page-link" href="{smartblog::GetSmartBlogLink('smartblog_category_pagination',$options)}">{$k+1}</a></li>
											{else}
												<li><a class="page-link" href="{smartblog::GetSmartBlogLink('smartblog_list_pagination',$options)}">{$k+1}</a></li>
											{/if}
									{/if}
							   {/for}
							</ul>
						</div>
						<div class="col-md-6">
							<div class="results">{l s="Showing" mod="smartblog"} {if $limit_start!=0}{$limit_start}{else}1{/if} {l s="to" mod="smartlatestnews"} {if $limit_start+$limit >= $total}{$total}{else}{$limit_start+$limit}{/if} {l s="of" mod="smartblog"} {$total} ({$c} {l s="Pages" mod="smartblog"})</div>
						</div>
				</div>
				</div> 
			  
			   {/if}
				<!-- page end -->
		  </div>
		{/if}





